﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassLibrary.DAL;

namespace ClassLibrary.BLL
{
    public class BLLKhachHang
    {
        private int id;
        public int ID
        {
            get { return id; }
            set { id = value; }
        }
        private string username;
        public string UserName
        {
            get { return username; }
            set { username = value; }
        }
        private string pass;
        public string Pass
        {
            get { return pass; }
            set { pass = value; }
        }
        private string hoten;
        public string HoTen
        {
            get { return hoten; }
            set { hoten = value; }
        }
        private string email;
        public string Email
        {

            get { return email; }
            set { email = value; }
        }
        private string diachi;
        public string DiaChi
        {
            get { return diachi; }
            set { diachi = value; }
        }
        private int sodt;
        public int SoDT
        {
            get { return sodt; }
            set { sodt = value; }
        }
        public BLLKhachHang()
        { }
        public BLLKhachHang(int _id)
        {
          ID = _id;
        }
        public BLLKhachHang(string _username,string _pass)
        {
            UserName = _username;
            Pass = _pass;
        }
        public BLLKhachHang(string _username, string _pass, string _hoten, string _email, string _diachi, int _sdt)
        {
            UserName = _username;
            Pass = _pass;
            HoTen = _hoten;
            Email = _email;
            DiaChi = _diachi;
            SoDT = _sdt;
        }
        public bool Checklogin
        {
            get { return DALKhachHang.Checklogin(this); }
        }

    }
}
